using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace Microsoft.Practices.Repository.Configuration
{
    /// <summary>
    /// The configuration section used to specify the mappings 
    /// between repository interfaces and repository concrete types.
    /// </summary>
    public class RepositoryFactorySection : ConfigurationSection
    {
        /// <summary>
        /// Initializes a new instance of RepositoryFactorySection.
        /// </summary>
        public RepositoryFactorySection()
        {

        }

        /// <summary>
        /// Gets the mappings specified on the configuration file.
        /// </summary>
        [ConfigurationProperty("repositories", IsRequired=true)]
        public RepositoryElementCollection Repositories
        {
            get
            {
                return (RepositoryElementCollection)base["repositories"];
            }
        }
    }
}
